//
//  CommonView.swift
//  TrafficViolation
//
//  Created by eaglelive on 2017/6/22.
//  Copyright © 2017年 eaglelive. All rights reserved.
//

import Foundation
import UIKit
class CommonView: UIView {
    override func layoutSubviews() {
        let detailLabel1 = UILabel(frame: CGRect(x: 10, y: 10, width: kScreenW - 15, height: 30))
        detailLabel1.font = UIFont.systemFont(ofSize: 12)
        detailLabel1.textColor = UIColor.red
        detailLabel1.numberOfLines = 2
        detailLabel1.textAlignment = .left
        detailLabel1.text = "1.特别注意：请拍照时确保证件边缘完整并且字体清晰可辨认的拍入照片内，否则将造成无法办理，敬请理解；"
        self.addSubview(detailLabel1)
        let detailLabel2 = UILabel(frame: CGRect(x: 10, y: 40, width: kScreenW - 15, height: 20))
        detailLabel2.font = UIFont.systemFont(ofSize: 12)
        detailLabel2.textColor = UIColor.darkGray
        detailLabel2.numberOfLines = 1
        detailLabel2.textAlignment = .left
        detailLabel2.text = "2.请提供清晰的照片，拍照时请防止反光；"
        self.addSubview(detailLabel2)
        let detailLabel3 = UILabel(frame: CGRect(x: 10, y: 60, width: kScreenW - 15, height: 30))
        detailLabel3.font = UIFont.systemFont(ofSize: 12)
        detailLabel3.textColor = UIColor.darkGray
        detailLabel3.numberOfLines = 2
        detailLabel3.textAlignment = .left
        detailLabel3.text = "3.照片模糊活字体无法清晰辨识的将可能造成无法办理，敬请理解。"
        self.addSubview(detailLabel3)
    }
}
